((entity instanceof TameableEntity)?((TameableEntity) entity).getOwner() : null)